package com.xls.commonlibrary.util.eventbus;

public class MessageEvent {
    public MessageEvent() {
    }

    public MessageEvent(String code, String etc) {
        this.code = code;
        this.etc = etc;
    }

    public MessageEvent(String code, String etc, String arg1, String arg2) {
        this.code = code;
        this.etc = etc;
        this.arg1 = arg1;
        this.arg2 = arg2;
    }

    private String code = "";
    private String etc = "";

    private String arg1 = "";// 参数1   复杂的用T data代替
    private String arg2 = "";// 参数2

    public String getArg1() {
        return arg1;
    }

    public void setArg1(String arg1) {
        this.arg1 = arg1;
    }

    public String getArg2() {
        return arg2;
    }

    public void setArg2(String arg2) {
        this.arg2 = arg2;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEtc() {
        return etc;
    }

    public void setEtc(String etc) {
        this.etc = etc;
    }


    @Override
    public String toString() {
        return "MessageEvent{" +
                "code='" + code + '\'' +
                ", etc='" + etc + '\'' +
                '}';
    }
}
